/* 基础样式 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ms-welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 100%;
}

.ms-welcome__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 130px;
    padding: 20px 0;
    background-color: #f3f2f1;
}

.ms-welcome__header > img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.ms-welcome__header h1 {
    color: #323130;
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

.ms-welcome__main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    flex: 1 1 0;
    overflow: auto;
}

.padding {
    padding: 15px 20px;
}

/* 表单控件样式 */
.ms-Label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
    margin-bottom: 5px;
    display: block;
}

.ms-TextField-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8a8886;
    border-radius: 2px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    resize: vertical;
    box-sizing: border-box;
}

.ms-TextField-field:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: inset 0 0 0 1px #0078d4;
}

.ms-TextField-field::placeholder {
    color: #605e5c;
    font-style: italic;
}

/* 按钮样式 */
.ms-Button {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.ms-Button--primary {
    background-color: #0078d4;
    border-color: #0078d4;
    color: #ffffff;
    width: 100%;
}

.ms-Button--primary:hover {
    background-color: #106ebe;
    border-color: #106ebe;
}

.ms-Button--primary:active {
    background-color: #005a9e;
    border-color: #005a9e;
}

.ms-Button--primary:disabled {
    background-color: #f3f2f1;
    border-color: #f3f2f1;
    color: #a19f9d;
    cursor: not-allowed;
}

/* Grid 系统 */
.ms-Grid {
    display: block;
    width: 100%;
}

.ms-Grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.ms-Grid-col {
    padding: 0 10px;
    box-sizing: border-box;
}

.ms-sm12 {
    width: 100%;
}

/* 间距工具类 */
.ms-u-marginTop-20 {
    margin-top: 20px !important;
}

.ms-u-marginTop-30 {
    margin-top: 30px !important;
}

.ms-u-marginBottom-20 {
    margin-bottom: 20px !important;
}

/* 状态消息样式 */
.status-message {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.status-message.success {
    background-color: #dff6dd;
    border: 1px solid #0e7c3e;
    color: #0e7c3e;
}

.status-message.error {
    background-color: #fde7e9;
    border: 1px solid #d13438;
    color: #d13438;
}

.status-message.info {
    background-color: #deecf9;
    border: 1px solid #0078d4;
    color: #0078d4;
}

.status-message.warning {
    background-color: #fff4ce;
    border: 1px solid #797673;
    color: #797673;
}

/* 帮助区域样式 */
.help-section {
    border: 1px solid #edebe9;
    border-radius: 4px;
    padding: 0;
    margin-top: 20px;
}

.help-title {
    background-color: #faf9f8;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #edebe9;
    margin: 0;
    user-select: none;
}

.help-title:hover {
    background-color: #f3f2f1;
}

.help-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.help-content h4 {
    color: #323130;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.help-content ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.help-content li {
    margin-bottom: 4px;
    color: #605e5c;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .padding {
        padding: 10px 15px;
    }
    
    .ms-welcome__header {
        min-height: 100px;
        padding: 15px 0;
    }
    
    .ms-welcome__header > img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .ms-welcome__header h1 {
        font-size: 20px;
    }
}

/* 加载中状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .ms-Button {
    cursor: wait;
}

/* 自定义滚动条 */
.ms-TextField-field::-webkit-scrollbar {
    width: 8px;
}

.ms-TextField-field::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ms-TextField-field::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.ms-TextField-field::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
